from docx import Document


class Doc:
    def __init__(self):
        self.document = Document()
    
    def add_text(self, text):
        self.document.add_paragraph(text)
        self.document.add_page_break()
    
    def save(self, path) -> str:
        path = f"files/{path}.docx"
        self.document.save(path)
        
        return path